package com.iteaj.network;

public class ProtocolFactoryDelegation<M extends AbstractMessage> extends ProtocolFactory<M> {

    private IotProtocolFactory iotProtocolFactory;

    public ProtocolFactoryDelegation(IotProtocolFactory iotProtocolFactory) {
        this.iotProtocolFactory = iotProtocolFactory;
    }

    @Override
    public AbstractProtocol getProtocol(M message) {
        return iotProtocolFactory.getProtocol(message);
    }
}
